<?
	session_start();
	$_SESSION["username"]="";
	include("../dbconnect.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrator Site</title>
</head>
<style>
	body {
		background-color:#000000;
		color:#FFFFFF;
	}
	#Admin {
		font-size:24px;
		color:#FFFFFF;
		font-family:Verdana, Arial, Helvetica, sans-serif;
	}
	
	#usName, #Password
	{
		width: 120px;
	}
</style>

<script>
	function check()
	{
		with(formDangNhap)
		{
			re=/^ *$/;
			if(re.test(usName.value) || re.test(Password.value))
			{
				alert('Username và Password không được để trống');
				return false;
			}
		}
	}
</script>

<body>
<table width="30%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><form id="formDangNhap" name="formDangNhap" method="post" action="xulydangnhap.php">
      <table width="80%" border="0" cellspacing="5" cellpadding="5" align="center">
        <tr>
          <td colspan="2" align="center"><div align="center">
            
          </div></td>
          </tr>
        <tr>
          <td width="40%"><div align="right">Username : </div></td>
          <td width="60%"><input name="usName" type="text" id="usName" size="20"  /></td>
        </tr>
        <tr>
          <td><div align="right">Password : </div></td>
          <td><input name="Password" type="password" id="Password" size="20" /></td>
        </tr>
        <tr>
          <td colspan="2"><div align="center">
            <input name="Login" type="submit" id="Login" value="Login" onclick="return check();" />
          </div></td>
          </tr>
      </table>
        <hr />
		<div id="Admin" align="center"> Administrator</div>
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />
		<br />
		<div align="center"> THPT NAM SÁCH </div>
		<div align="center"> Copyright &copy; 2012 </div>

    </form>
    </td>
  </tr>
</table>
</body>
</html>
